# datetime: time模块升级版
'''

datetime模块
time 时间
date 日期
datetime 日期时间
timedelta 时间差
'''

import datetime

print(datetime.time.hour)
print(datetime.date.today().day)
print(datetime.date.ctime(datetime.date(2019, 6, 20)))

# 当前日期时间
now = datetime.datetime.now()
print(now)

timedel = datetime.timedelta(hours=2)
t = now + timedel
print(t)
